//---------------------------------------------------------------------------

#ifndef dataModuleH
#define dataModuleH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Data.DB.hpp>
#include <Data.DBXMySQL.hpp>
#include <Data.FMTBcd.hpp>
#include <Data.SqlExpr.hpp>
#include <Datasnap.DBClient.hpp>
#include <Datasnap.Provider.hpp>
//---------------------------------------------------------------------------
class TDataModule1 : public TDataModule
{
__published:	// IDE-managed Components
	TSQLConnection *MySQL_Connection;
	TSQLQuery *SQLQuery;
	TDataSource *lesson_typesDataSource;
	TDataSetProvider *lessonTypesProvider;
	TClientDataSet *lessonTypesClientDataSet;
	TDataSource *prepodsDataSource;
	TDataSetProvider *prepodsProvider;
	TClientDataSet *prepodsClientDataSet;
	TDataSource *predmetsDataSource;
	TDataSetProvider *predmetsProvider;
	TClientDataSet *predmetsClientDataSet;
	TDataSource *groupsDataSource;
	TDataSetProvider *groupsProvider;
	TClientDataSet *groupsClientDataSet;
	TDataSource *studentsDataSource;
	TDataSetProvider *studentsProvider;
	TClientDataSet *studentsClientDataSet;
	TDataSource *assistentsDataSource;
	TDataSetProvider *assistentsProvider;
	TClientDataSet *assistentsClientDataSet;
	TDataSource *specsDataSource;
	TDataSetProvider *specsProvider;
	TClientDataSet *specsClientDataSet;
	TSQLQuery *prepodsQuery;
	TSQLQuery *predmetsQuery;
	TSQLQuery *groupsQuery;
	TSQLQuery *specsQuery;
	TSQLQuery *assistentsQuery;
	TSQLQuery *study_typesQuery;
	TSQLQuery *lesson_typesQuery;
	TSQLQuery *studentsQuery;
	TSQLQuery *study_planQuery;
	TSQLQuery *marksQuery;
	TSQLQuery *ratingQuery;
	TDataSource *study_typesDataSource;
	TDataSetProvider *study_typesProvider;
	TClientDataSet *study_typesClientDataSet;
	TDataSource *study_planDataSource;
	TDataSetProvider *study_planProvider;
	TClientDataSet *study_planClientDataSet;
	TDataSource *marksDataSource;
	TDataSetProvider *marksProvider;
	TClientDataSet *marksClientDataSet;
	TDataSource *ratingDataSource;
	TDataSetProvider *ratingProvider;
	TClientDataSet *ratingClientDataSet;
	TDataSetProvider *queryProvider;
	TClientDataSet *queryClientDataSet;
	TDataSource *queryDataSource;
	TSQLQuery *stepQuery;
	TDataSetProvider *stepSetProvider;
	TClientDataSet *stepClientDataSet;
	TDataSource *stepDataSource;
	TSQLQuery *sstepQuery;
	TDataSetProvider *sstepSetProvider;
	TClientDataSet *sstepClientDataSet;
	TDataSource *sstepDataSource;
	void __fastcall prepodsClientDataSetAfterScroll(TDataSet *DataSet);

private:	// User declarations
public:		// User declarations
	bool connect(UnicodeString username, UnicodeString password);
	__fastcall TDataModule1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TDataModule1 *DataModule1;
//---------------------------------------------------------------------------
#endif
